Skip to content

ci: add Codecov coverage reporting with an enforced minimum threshold#21

Merged
GREENFONTS merged 2 commits into
mainfrom
dev
Jul 1, 2026
Merged

ci: add Codecov coverage reporting with an enforced minimum threshold#21
GREENFONTS merged 2 commits into
mainfrom
dev

Conversation

@GREENFONTS

@GREENFONTS GREENFONTS commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Wires dotnet test's existing coverlet.collector reference into an actual coverage report (previously referenced but never collected), uploads it via Codecov's tokenless GitHub OIDC flow, and adds codecov.yml gating project coverage at 85% and patch coverage at 80% - a few points below the current ~95% unit-test baseline so there's headroom without losing a real regression gate. Coverage reflects Monnify.Tests only since IntegrationTests are skipped in CI (no sandbox credentials) and contribute nothing to the report.

What and why

Checklist

  • Tests added/updated and passing (dotnet test)
  • dotnet format --verify-no-changes passes
  • CHANGELOG.md updated under [Unreleased]
  • docs/COMPATIBILITY.md updated for any endpoint you implemented or changed
  • No secrets, tokens, or real API keys committed

Wires dotnet test's existing coverlet.collector reference into an actual
coverage report (previously referenced but never collected), uploads it via
Codecov's tokenless GitHub OIDC flow, and adds codecov.yml gating project
coverage at 85% and patch coverage at 80% - a few points below the current
~95% unit-test baseline so there's headroom without losing a real regression
gate. Coverage reflects Monnify.Tests only since IntegrationTests are skipped
in CI (no sandbox credentials) and contribute nothing to the report.
The tokenless OIDC upload failed with "Repository not found" - Codecov has
never synced this repo, so upload requires activating it on codecov.io first.
Rather than depend on that, run Monnify.Tests with coverage collection
separately from the full test pass and fail the build below an 85% line
floor by parsing the cobertura report coverlet already produces - no external
account or token needed. Current baseline is ~95%.
@GREENFONTS
GREENFONTS merged commit 4a57bdc into main Jul 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant